package com.ruoyi.eduManage.service.impl;

import com.ruoyi.eduManage.domain.EduStudentPointsLog;
import com.ruoyi.eduManage.mapper.EduStudentPointsLogMapper;
import com.ruoyi.eduManage.service.IEduStudentPointsLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EduStudentPointsLogServiceImpl implements IEduStudentPointsLogService {
    @Autowired
    private EduStudentPointsLogMapper logMapper;

    @Override
    public int insertEduStudentPointsLog(EduStudentPointsLog log) {
        return logMapper.insertEduStudentPointsLog(log);
    }

    @Override
    public List<EduStudentPointsLog> selectEduStudentPointsLogListByStudentId(Long studentId) {
        return logMapper.selectEduStudentPointsLogListByStudentId(studentId);
    }

    @Override
    public java.util.List<java.util.Map<String, Object>> selectDailyPointsByStudent(Long studentId, String startDate, String endDate) {
        return logMapper.selectDailyPointsByStudent(studentId, startDate, endDate);
    }
}